xenpaging: drop xc.c, remove ASSERT
authorOlaf Hering <olaf@aepfle.de>
Fri, 10 Jun 2011 08:47:06 +0000 (10:47 +0200)
committerOlaf Hering <olaf@aepfle.de>
Fri, 10 Jun 2011 08:47:06 +0000 (10:47 +0200)
The ASSERT is not needed, victim is never NULL.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
tools/xenpaging/policy_default.c
tools/xenpaging/xc.h

index 55a0ae8470d7eb2fb0923a835bfae06160ab08f5..83fe830309bec8528640ad2606a989ace329447b 100644 (file)
@@ -78,7 +78,6 @@ int policy_choose_victim(xenpaging_t *paging, xenpaging_victim_t *victim)
 {
     xc_interface *xch = paging->xc_handle;
     unsigned long wrap = current_gfn;
-    ASSERT(victim != NULL);
 
     do
     {
index 27181cd3096d01755061615e654a3119dd80ad6c..38c4cb08675d842954dc864347cdf6cea525fe77 100644 (file)
 #include <xen/mem_event.h>
 
 
-#if 1
-#define ASSERT(_p) \
-    if ( !(_p) ) { DPRINTF("Assertion '%s' failed, line %d, file %s", #_p , \
-    __LINE__, __FILE__); *(int*)0=0; }
-#else
-#define ASSERT(_p) ((void)0)
-#endif